:root {
  /* 医疗行业配色方案 */
  --primary-color: #007a5a;
  --primary-light: #00a87e;
  --primary-dark: #005d48;
  --secondary-color: #1e88e5;
  --secondary-light: #42a5f5;
  --background-color: #f8faf9;
  --card-background: #ffffff;
  --text-primary: #252b3a;
  --text-secondary: #5c6370;
  --border-color: #e3e8ee;
  --success-color: #007a5a;
  --warning-color: #f9a826;
  --error-color: #e53935;
  --info-color: #1e88e5;
  
  font-family: 'Segoe UI', system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;

  color-scheme: light;
  color: var(--text-primary);
  background-color: var(--background-color);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: inherit;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-light);
}

body {
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-primary);
  min-width: 320px;
  min-height: 100vh;
  font-size: 14px;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
button:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}
button:focus,
button:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* 辅助按钮样式 */
button.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
button.secondary:hover {
  background-color: rgba(0, 122, 90, 0.08);
}

.card {
  padding: 1.5em;
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

#app {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* 医疗主题特定样式 */
.medical-icon {
  color: var(--primary-color);
  font-size: 1.2em;
}

.health-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: rgba(0, 122, 90, 0.1);
  color: var(--primary-color);
  font-size: 0.85em;
  font-weight: 500;
}

/* 分割线样式 */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 1.5em 0;
}

/* 医疗卡片特殊样式 */
.medical-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.medical-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 确保响应式适配 */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }
  
  .card {
    padding: 1.2em;
  }
  
  button {
    padding: 0.5em 1em;
    font-size: 0.9em;
  }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
